export const routes = [
  // 登录
  {
    path: "/",
    component: () => import("../layouts/default/default.vue"),
    redirect: "/login",
    children: [],
  },
  // 后台
  {
    path: "/",
    component: () => import("../layouts/admin/admin.vue"),
    redirect: "/postManage",
    children: [
      {
        path: "/postManage",
        component: () => import("../views/admin/postManage/index.vue"),
      },
      {
        path: "/publishManage",
        component: () => import("../views/admin/publishManage/index.vue"),
      },
      {
        path: "/draftManage",
        component: () => import("../views/admin/draftManage/index.vue"),
      },
      {
        path: "/mediaList",
        component: () => import("../views/admin/mediaList/index.vue"),
      },
    ],
  },
];
